﻿<Window x:Class="TfsBuildManager.Views.SelectTargetBranchWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        WindowStartupLocation="CenterScreen"
        Title="Select Target Branch" Height="300" Width="500" Icon="Graphics/AppIcon.ico" ResizeMode="NoResize">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <ListBox Name="lbBranches" Margin="2,2,8,8" ItemsSource="{Binding TargetBranches}" DisplayMemberPath="Path" SelectedValue="{Binding Path=SelectedBranch}"/>

        <DockPanel Grid.Row="1">
            <Label Content="New name:" DockPanel.Dock="Left"></Label>
            <TextBox Name="tbNewName" Text="{Binding NewName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" DockPanel.Dock="Right" Margin="5,0,8,0" ></TextBox>
        </DockPanel>

        <StackPanel Grid.Row="2" Orientation="Horizontal" HorizontalAlignment="Right" >
            <Button IsDefault="True" Name="btnDelete" Margin="5" Padding="20,3,20,3" Click="OnOK" IsEnabled="{Binding IsEnabled}">OK</Button>
            <Button IsDefault="False" IsCancel="True" Name="btnCancel" Margin="5" Padding="15,3,15,3" Click="OnCancel">Cancel</Button>
        </StackPanel>
    </Grid>
</Window>
